package com.bihu.bihudemo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

/**
 * (Friend)表实体类
 *
 * @author makejava
 * @since 2020-07-20 15:19:28
 */
@SuppressWarnings("serial")
public class Friend extends Model<Friend> {

    //主键
    @TableId(type = IdType.AUTO)
    private Integer id;
    //用户ID
    private Integer userId;
    //好友ID
    private Integer friendId;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getFriendId() {
        return friendId;
    }

    public void setFriendId(Integer friendId) {
        this.friendId = friendId;
    }

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}